<?php

class Application_Form_ItemlistingCustomerallocate extends Zend_Form
{

	public function init()
	{
		
		$this->setDecorators(array(
		
				array('ViewScript', array(
						// the view template script
						'viewScript' => 'forms/customerallocate.phtml'))
		));
		
		
		
		$this->setMethod('post');
		$this->setAction('customerallocate');

		$listing_id = new Zend_Form_Element_Hidden('listing_id');
		
		$customer = new Zend_Form_Element_MultiCheckbox('customer');
		$customer->setLabel('Kunden');
		
		$mediaMarkt = new Zend_Form_Element_Checkbox('mediamarkt');
		$mediaMarkt->setLabel('Media Markt');
		$mediaMarkt->setValue('30000');
		
		$saturn = new Zend_Form_Element_Checkbox('saturn');
		$saturn->setLabel('Gross');
		$saturn->setValue(30001);
		
		$msb = new Zend_Form_Element_Checkbox('msb');
		$msb->setLabel('MSB AT');
		$msb->setValue('30010');
		
		$gross = new Zend_Form_Element_Checkbox('gross');
		$gross->setLabel('Gross Electronic');
		$gross->setValue('20993');
		
		$flashpoint = new Zend_Form_Element_Checkbox('flashpoint');
		$flashpoint->setLabel('Flashpoint');
		$flashpoint->setValue('20192');
		
		$nbg = new Zend_Form_Element_Checkbox('nbg');
		$nbg->setLabel('NBG');
		$nbg->setValue('6378');
		
		$alpha = new Zend_Form_Element_Checkbox('alpha');
		$alpha->setLabel('Alpha');
		$alpha->setValue('20015');
		
		$expert = new Zend_Form_Element_Checkbox('expert');
		$expert->setLabel('Expert');
		$expert->setValue('20180');
		
		$gamestop = new Zend_Form_Element_Checkbox('gamestop');
		$gamestop->setLabel('Gamestop');
		$gamestop->setValue('25077');
		
		$ep = new Zend_Form_Element_Checkbox('medimax');
		$ep->setLabel('EP Elektronik');
		$ep->setValue('9401');
		
		$toys = new Zend_Form_Element_Checkbox('toys');
		$toys->setLabel('Toys\'r\'us');
		$toys->setValue('30500');
		
		$real = new Zend_Form_Element_Checkbox('real');
		$real->setLabel('REAL');
		$real->setValue('30040');
		
		$mueller = new Zend_Form_Element_Checkbox('mueller');
		$mueller->setLabel('Mueller');
		$mueller->setValue('21074');
		
		$amazon = new Zend_Form_Element_Checkbox('amazon');
		$amazon->setLabel('Amazon');
		$amazon->setValue('22145');
		
		$libro = new Zend_Form_Element_Checkbox('libo');
		$libro->setLabel('Libro');
		$libro->setValue('25617');
		
		$thali = new Zend_Form_Element_Checkbox('thali');
		$thali->setLabel('Thali');
		$thali->setValue('14160');
		
		$interdiscount = new Zend_Form_Element_Checkbox('interdiscount');
		$interdiscount->setLabel('Interdiscount');
		$interdiscount->setValue('6120');
		
		$abc = new Zend_Form_Element_Checkbox('abc');
		$abc->setLabel('ABC');
		$abc->setValue('25517');
		
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setLabel('Allocate');

		$this->addElements(array($listing_id, $mediaMarkt, $saturn, $msb, $gross, $flashpoint, $nbg, $alpha, 
									$expert, $gamestop, $ep, $toys, $real, $mueller, $amazon, $libro, 
									$thali, $interdiscount, $abc, $submit));
		
		//Enable Zend form inputboxes and error output
		$this->setElementDecorators(array('ViewHelper', 'Errors'));
		
	}


}

